var Mock = require('mockjs')
var data = Mock.mock({
  "ret": true,
  "errcode|100-500": 0,
  "data|10-100": [
    {
      "id": "@increment(1)",
      "name": "@ctitle(8, 12)",
      "release": "@datetime('yyyy-MM-dd HH:mm:ss')",
      "theater": "@ctitle(8, 12)",
      "price|2-4.2": 0,
      "img": "@image('200x100', 'Hello Mock.js!')"
    }
  ]
})
// 输出结果
console.log(JSON.stringify(data, null, 4))